﻿using System;
using System.Collections.Generic;
using System.Text;

public class VehicleInGarage
{
    private Vehicle m_Vehicle = null;
    private string m_OwnerPhoneNumber = string.Empty;
    private string m_OwnerName = string.Empty;
    private eHandleStatus m_HandleStatus = eHandleStatus.NotRepairedYet;

    public string OwnerName
    {
        get { return m_OwnerName; }
        set { m_OwnerName = value; }
    }

    public string OwnerPhoneNumber
    {
        get { return m_OwnerPhoneNumber; }
        set { m_OwnerPhoneNumber = value; }
    }

    public eHandleStatus CurrentHandleStatus
    {
        get { return m_HandleStatus; }
        set { m_HandleStatus = value; }
    }

    public Vehicle Vehicle
    {
        get { return m_Vehicle; }
        set { m_Vehicle = value; }
    }

    public enum eHandleStatus
    {
        NotRepairedYet = 0,
        InRepair,
        Repaired,
        Paid
    }

    public new string ToString()
    {
        string ResultStr = string.Concat("Owner name: ", m_OwnerName, System.Environment.NewLine, "Owner phone number: ", m_OwnerPhoneNumber, System.Environment.NewLine, "Vehicle handle status: ", m_HandleStatus.ToString(), System.Environment.NewLine, m_Vehicle.ToString(), System.Environment.NewLine);

        return ResultStr;
    }

    public VehicleInGarage(Vehicle i_Vehicle, string i_VehicleOwnerName, string i_VehicleOwnerPhoneNumber)
    {
        m_Vehicle = i_Vehicle;
        m_OwnerName = i_VehicleOwnerName;
        m_OwnerPhoneNumber = i_VehicleOwnerPhoneNumber;
    }
}
